﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using NQQOpenApi;

namespace DemoSite
{
    public partial class index : System.Web.UI.Page
    {
        private string QQloginUrl = null;
        protected string QQLoginUrl { get { return QQloginUrl; } }

        protected void Page_Load(object sender, EventArgs e)
        {
            Session["QQState"] = (new Random()).Next(1000, 9999).ToString();
            QQloginUrl = new PCApiManager("你的AppID", "你的AppKey").GetLoginUrl("你的回调地址", Session["QQState"].ToString(), "get_user_info,add_t,add_pic_t");
        }
    }
}